# @Author   :   yuanxi
# @Time      :  2022/1/12

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.credit_medical_page import CreditMedicalPage


class CreditMedicalCase(UIParent):

    @classmethod
    def test_credit_medical_check(cls):
        '''信用就医校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("信用就医")
        authorizePage.ifAuthorize()

        status = CreditMedicalPage.credit_medical_index()
        asserts.true(status, "信用就医校验")
